import 'package:flutter/cupertino.dart';
import 'package:flutter/material.dart';
import 'package:flutter_screenutil/flutter_screenutil.dart';


import '../../AppConfig/Config.dart';
import '../../AppConfig/RouteAct.dart';
import 'DeviceInformation.dart';
import 'EssentialInformation.dart';
import 'ServiceInformation.dart';
import 'TransactionInformation.dart';


class PersonalInformationList extends StatefulWidget {
  const PersonalInformationList({super.key});

  @override
  State<PersonalInformationList> createState() => _PersonalInformationListState();
}

class _PersonalInformationListState extends State<PersonalInformationList> {
  @override
  Widget build(BuildContext context) {
    return Scaffold(
      backgroundColor: MyColors.backgreyColor,
      appBar: AppBar(
        centerTitle: true,
        backgroundColor: Colors.white,
        leading: IconButton(icon: Icon(Icons.arrow_back_ios,color: Colors.black,),onPressed: (){Navigator.pop(context);},),
        title: Text("收集个人信息清单",style: TextStyle(fontWeight: FontWeight.w300,fontSize: 16.sp),),
      ),
      body: ListView(
        children: [
          Container(
            margin: EdgeInsets.only(left: 10.w,right: 10.w,top: 8.h),
            padding: EdgeInsets.only(left: 10.w,right: 10.w,top: 10.h,bottom: 10.h),
            decoration: BoxDecoration(
                color: Colors.white,
                borderRadius: BorderRadius.all(Radius.circular(10))),
            child: Column(

              children: [
                GestureDetector(
                  child: Row(
                    mainAxisAlignment: MainAxisAlignment.spaceBetween,
                    children: [
                      Column(
                        crossAxisAlignment: CrossAxisAlignment.start,
                        children: [
                          Text("基本信息",style: TextStyle(color: Colors.black,fontSize: 14.sp),),
                          Text("包括用户身份信息、用户证件信息",style: TextStyle(color: MyColors.authTipColor,fontSize: 12.sp),),
                        ],
                      ),
                      Icon(Icons.arrow_forward_ios,color: MyColors.authTipColor,size: 14,),
                    ],
                  ),
                  onTap: (){
                    Navigator.push( context, FadeRoute(page:EssentialInformation()));
                  },
                ),
                Divider(height: 16.h,color: MyColors.backgreyColor,),
                GestureDetector(
                  child: Row(
                    mainAxisAlignment: MainAxisAlignment.spaceBetween,
                    children: [
                      Column(
                        crossAxisAlignment: CrossAxisAlignment.start,
                        children: [
                          Text("服务信息",style: TextStyle(color: Colors.black,fontSize: 14.sp),),
                          Text("包括用户地址信息、位置信息",style: TextStyle(color: MyColors.authTipColor,fontSize: 12.sp),),
                        ],
                      ),
                      Icon(Icons.arrow_forward_ios,color: MyColors.authTipColor,size: 14,),
                    ],
                  ),
                  onTap: (){
                    Navigator.push( context, FadeRoute(page:ServiceInformation()));
                  },
                ),
                Divider(height: 16.h,color: MyColors.backgreyColor,),
                GestureDetector(
                  child: Row(
                    mainAxisAlignment: MainAxisAlignment.spaceBetween,
                    children: [
                      Column(
                        crossAxisAlignment: CrossAxisAlignment.start,
                        children: [
                          Text("设备信息",style: TextStyle(color: Colors.black,fontSize: 14.sp),),
                          Text("包括设备型号、os版本、屏幕分辨率、网络运营商",style: TextStyle(color: MyColors.authTipColor,fontSize: 12.sp),),
                        ],
                      ),
                      Icon(Icons.arrow_forward_ios,color: MyColors.authTipColor,size: 14,),
                    ],
                  ),
                  onTap: (){
                    Navigator.push( context, FadeRoute(page:DeviceInformation()));
                  },
                ),
                Divider(height: 16.h,color: MyColors.backgreyColor,),
                GestureDetector(
                  child: Row(
                    mainAxisAlignment: MainAxisAlignment.spaceBetween,
                    children: [
                      Column(
                        crossAxisAlignment: CrossAxisAlignment.start,
                        children: [
                          Text("交易信息",style: TextStyle(color: Colors.black,fontSize: 14.sp),),
                          Text("包括订单信息、钱包交易信息、银行卡信息",style: TextStyle(color: MyColors.authTipColor,fontSize: 12.sp),),
                        ],
                      ),
                      Icon(Icons.arrow_forward_ios,color: MyColors.authTipColor,size: 14,),
                    ],
                  ),
                  onTap: (){
                    Navigator.push( context, FadeRoute(page:TransactionInformation()));
                  },
                ),

              ],
            ),
          ),
        ],
      ),
    );
  }
}
